const { Tray } = require('electron')
const path = require('path');
function createTray(app, win) {
  const tray = new Tray(path.join(__dirname, './icon.png'))
  tray.setToolTip('readit')
  tray.on('click', (e) => {
    if (e.shiftKey) {
      app.quit()
    }
  })
}

module.exports = createTray